package com.group9.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class ActivityFruitExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ActivityFruitExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFruitActivityIdIsNull() {
            addCriterion("fruit_activity_id is null");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdIsNotNull() {
            addCriterion("fruit_activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdEqualTo(Integer value) {
            addCriterion("fruit_activity_id =", value, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdNotEqualTo(Integer value) {
            addCriterion("fruit_activity_id <>", value, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdGreaterThan(Integer value) {
            addCriterion("fruit_activity_id >", value, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fruit_activity_id >=", value, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdLessThan(Integer value) {
            addCriterion("fruit_activity_id <", value, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdLessThanOrEqualTo(Integer value) {
            addCriterion("fruit_activity_id <=", value, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdIn(List<Integer> values) {
            addCriterion("fruit_activity_id in", values, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdNotIn(List<Integer> values) {
            addCriterion("fruit_activity_id not in", values, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdBetween(Integer value1, Integer value2) {
            addCriterion("fruit_activity_id between", value1, value2, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fruit_activity_id not between", value1, value2, "fruitActivityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdIsNull() {
            addCriterion("activity_id is null");
            return (Criteria) this;
        }

        public Criteria andActivityIdIsNotNull() {
            addCriterion("activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andActivityIdEqualTo(Short value) {
            addCriterion("activity_id =", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotEqualTo(Short value) {
            addCriterion("activity_id <>", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdGreaterThan(Short value) {
            addCriterion("activity_id >", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdGreaterThanOrEqualTo(Short value) {
            addCriterion("activity_id >=", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLessThan(Short value) {
            addCriterion("activity_id <", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdLessThanOrEqualTo(Short value) {
            addCriterion("activity_id <=", value, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdIn(List<Short> values) {
            addCriterion("activity_id in", values, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotIn(List<Short> values) {
            addCriterion("activity_id not in", values, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdBetween(Short value1, Short value2) {
            addCriterion("activity_id between", value1, value2, "activityId");
            return (Criteria) this;
        }

        public Criteria andActivityIdNotBetween(Short value1, Short value2) {
            addCriterion("activity_id not between", value1, value2, "activityId");
            return (Criteria) this;
        }

        public Criteria andFruitIdIsNull() {
            addCriterion("fruit_id is null");
            return (Criteria) this;
        }

        public Criteria andFruitIdIsNotNull() {
            addCriterion("fruit_id is not null");
            return (Criteria) this;
        }

        public Criteria andFruitIdEqualTo(Integer value) {
            addCriterion("fruit_id =", value, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdNotEqualTo(Integer value) {
            addCriterion("fruit_id <>", value, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdGreaterThan(Integer value) {
            addCriterion("fruit_id >", value, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fruit_id >=", value, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdLessThan(Integer value) {
            addCriterion("fruit_id <", value, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdLessThanOrEqualTo(Integer value) {
            addCriterion("fruit_id <=", value, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdIn(List<Integer> values) {
            addCriterion("fruit_id in", values, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdNotIn(List<Integer> values) {
            addCriterion("fruit_id not in", values, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdBetween(Integer value1, Integer value2) {
            addCriterion("fruit_id between", value1, value2, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fruit_id not between", value1, value2, "fruitId");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostIsNull() {
            addCriterion("fruit_activity_cost is null");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostIsNotNull() {
            addCriterion("fruit_activity_cost is not null");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostEqualTo(BigDecimal value) {
            addCriterion("fruit_activity_cost =", value, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostNotEqualTo(BigDecimal value) {
            addCriterion("fruit_activity_cost <>", value, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostGreaterThan(BigDecimal value) {
            addCriterion("fruit_activity_cost >", value, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("fruit_activity_cost >=", value, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostLessThan(BigDecimal value) {
            addCriterion("fruit_activity_cost <", value, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostLessThanOrEqualTo(BigDecimal value) {
            addCriterion("fruit_activity_cost <=", value, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostIn(List<BigDecimal> values) {
            addCriterion("fruit_activity_cost in", values, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostNotIn(List<BigDecimal> values) {
            addCriterion("fruit_activity_cost not in", values, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("fruit_activity_cost between", value1, value2, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andFruitActivityCostNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("fruit_activity_cost not between", value1, value2, "fruitActivityCost");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityIsNull() {
            addCriterion("total_quantity is null");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityIsNotNull() {
            addCriterion("total_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityEqualTo(Integer value) {
            addCriterion("total_quantity =", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityNotEqualTo(Integer value) {
            addCriterion("total_quantity <>", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityGreaterThan(Integer value) {
            addCriterion("total_quantity >", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_quantity >=", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityLessThan(Integer value) {
            addCriterion("total_quantity <", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("total_quantity <=", value, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityIn(List<Integer> values) {
            addCriterion("total_quantity in", values, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityNotIn(List<Integer> values) {
            addCriterion("total_quantity not in", values, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityBetween(Integer value1, Integer value2) {
            addCriterion("total_quantity between", value1, value2, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andTotalQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("total_quantity not between", value1, value2, "totalQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityIsNull() {
            addCriterion("surplus_quantity is null");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityIsNotNull() {
            addCriterion("surplus_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityEqualTo(Integer value) {
            addCriterion("surplus_quantity =", value, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityNotEqualTo(Integer value) {
            addCriterion("surplus_quantity <>", value, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityGreaterThan(Integer value) {
            addCriterion("surplus_quantity >", value, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("surplus_quantity >=", value, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityLessThan(Integer value) {
            addCriterion("surplus_quantity <", value, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("surplus_quantity <=", value, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityIn(List<Integer> values) {
            addCriterion("surplus_quantity in", values, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityNotIn(List<Integer> values) {
            addCriterion("surplus_quantity not in", values, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityBetween(Integer value1, Integer value2) {
            addCriterion("surplus_quantity between", value1, value2, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andSurplusQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("surplus_quantity not between", value1, value2, "surplusQuantity");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusIsNull() {
            addCriterion("fruit_activity_status is null");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusIsNotNull() {
            addCriterion("fruit_activity_status is not null");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusEqualTo(Byte value) {
            addCriterion("fruit_activity_status =", value, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusNotEqualTo(Byte value) {
            addCriterion("fruit_activity_status <>", value, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusGreaterThan(Byte value) {
            addCriterion("fruit_activity_status >", value, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("fruit_activity_status >=", value, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusLessThan(Byte value) {
            addCriterion("fruit_activity_status <", value, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusLessThanOrEqualTo(Byte value) {
            addCriterion("fruit_activity_status <=", value, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusIn(List<Byte> values) {
            addCriterion("fruit_activity_status in", values, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusNotIn(List<Byte> values) {
            addCriterion("fruit_activity_status not in", values, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusBetween(Byte value1, Byte value2) {
            addCriterion("fruit_activity_status between", value1, value2, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andFruitActivityStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("fruit_activity_status not between", value1, value2, "fruitActivityStatus");
            return (Criteria) this;
        }

        public Criteria andOther1IsNull() {
            addCriterion("other1 is null");
            return (Criteria) this;
        }

        public Criteria andOther1IsNotNull() {
            addCriterion("other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOther1EqualTo(String value) {
            addCriterion("other1 =", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotEqualTo(String value) {
            addCriterion("other1 <>", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThan(String value) {
            addCriterion("other1 >", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThanOrEqualTo(String value) {
            addCriterion("other1 >=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThan(String value) {
            addCriterion("other1 <", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThanOrEqualTo(String value) {
            addCriterion("other1 <=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Like(String value) {
            addCriterion("other1 like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotLike(String value) {
            addCriterion("other1 not like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1In(List<String> values) {
            addCriterion("other1 in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotIn(List<String> values) {
            addCriterion("other1 not in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Between(String value1, String value2) {
            addCriterion("other1 between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotBetween(String value1, String value2) {
            addCriterion("other1 not between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther2IsNull() {
            addCriterion("other2 is null");
            return (Criteria) this;
        }

        public Criteria andOther2IsNotNull() {
            addCriterion("other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOther2EqualTo(String value) {
            addCriterion("other2 =", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotEqualTo(String value) {
            addCriterion("other2 <>", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThan(String value) {
            addCriterion("other2 >", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThanOrEqualTo(String value) {
            addCriterion("other2 >=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThan(String value) {
            addCriterion("other2 <", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThanOrEqualTo(String value) {
            addCriterion("other2 <=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Like(String value) {
            addCriterion("other2 like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotLike(String value) {
            addCriterion("other2 not like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2In(List<String> values) {
            addCriterion("other2 in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotIn(List<String> values) {
            addCriterion("other2 not in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Between(String value1, String value2) {
            addCriterion("other2 between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotBetween(String value1, String value2) {
            addCriterion("other2 not between", value1, value2, "other2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}